<!--
  @author yangjiangming
  @date 2018/11/26 10:00
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<zmn th:fragment="precisionQuery">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">工单号：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: inputForCode"></div>
            </div>
            <label class="layui-form-label">客户电话：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: inputForConcatPhone"></div>
            </div>
            <label class="layui-form-label">下单平台：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForPlatType"></div>
            </div>
            <label class="layui-form-label">服务平台：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForPlatWorkType"></div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">下单渠道：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForChannelIdList"></div>
            </div>
            <label class="layui-form-label">业务类型：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForBizType"></div>
            </div>
            <label class="layui-form-label">工单类型：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForWorkTypeList"></div>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">来源渠道：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForSourceChannelIdList"></div>
            </div>
            <label class="layui-form-label">省份：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForProvinceIdList"></div>
            </div>
        </div>
    </div>

    <!-- 下单时间 -->
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">重复：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForDuplicate"></div>
            </div>
            <label class="layui-form-label">用户层级：</label>
            <div class="layui-input-inline">
                <div th:replace="common/listQueryItemTmpl :: selectForUserLevel"></div>
            </div>
            <label class="layui-form-label">城市：</label>
            <div class="layui-input-inline input-large">
                <div th:replace="common/listQueryItemTmpl :: selectForCityIdList"></div>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <div th:replace="~{common/listQueryItemTmpl :: receiveTimeContent}"></div>
            <div class="layui-input-inline inline-btn">
                <div th:replace="common/listQueryItemTmpl :: buttonForSearch"></div>
                <div th:if="${#authPermit.checkPermit('/all/oms/work/list/export.action')}" th:replace="common/listQueryItemTmpl :: buttonForExport"></div>
            </div>
        </div>
    </div>
</zmn>

<!-- 精准查询 -->
<zmn th:fragment="query1">
    <div class="layui-form-item" th:if="${#authPermit.checkPermit('/work/list/precision/query.action')}">
        <label class="layui-form-label">工单号：</label>
        <div class="layui-input-inline">
            <div th:replace="common/listQueryItemTmpl :: inputForCode"></div>
        </div>

        <label class="layui-form-label">客户电话：</label>
        <div class="layui-input-inline">
            <div th:replace="common/listQueryItemTmpl :: inputForConcatPhone"></div>
        </div>

        <div class="layui-inline">
            <div class="layui-input-inline inline-btn">
                <div th:replace="common/listQueryItemTmpl :: buttonForSearch"></div>
            </div>
        </div>

    </div>

</zmn>